<?php

namespace App\Http\Requests\Api\Comment;

use App\Http\Requests\Api\BaseRequest;

class CommentRequest extends BaseRequest
{

    public function rules()
    {
        return [
			'reply_user_id'=>'nullable|exists:user,id|integer',
			'pid'=>'nullable|exists:comment,id|integer',
			'content'=>'required|string|max:1000|min:1',
        ];
    }

	public function attributes()
    {
		return [
			'reply_user_id'=>'被回复用户',
			'pid'=>'评论',
			'content'=>'评论内容',
		];
    }
}
